﻿using System;
using Mbs;
using Mbs.Modularity;
using Mbs.Windows;

namespace EventBroker.Module
{
    public class ModuleStarter : ModuleActivator
    {
        public override void Start()
        {
            base.Start();

            CommandNames.EventBroker.Subscribe<EventArgs>((s, e) =>
            {
                var ws = Workspace.Get("MainWorkSpace");
                var p = Locator.Get <IGlobalCustomerPresenter>();
                ws.Show(p.View);
            });
            
        }
    }
}
